package com.infotel.cartegrise.ihm;


import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class PanneauExporter extends JScrollPane{

    private static final long serialVersionUID = 1L;
    
    public PanneauExporter (){
        JPanel panneauLabel = new JPanel();
        
        
        
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();

        String[] fontNames = ge.getAvailableFontFamilyNames();
        
        panneauLabel.setLayout(new GridLayout(25, 8));
       
        for(int i=0;i<fontNames.length;i++){
            JLabel jlabel = new JLabel(fontNames[i].toString());
            jlabel.setFont(new Font(fontNames[i].toString(), Font.PLAIN, 14));
            panneauLabel.add(jlabel);

        }
        this.setViewportView(panneauLabel);

    }

}
